package com.fcat.base.common.po;


import java.util.ArrayList;
import java.util.List;

public class TreeNode {
    protected String id;
    protected String parentId;
    /*
    树的值
     */
    String value;
    /*
    树排序的下标
     */
    int sort;
    List<TreeNode> children = new ArrayList<>();
    public void add(TreeNode node){
        children.add(node);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
